import request from '@/utils/request'

// 查询商代参数列表
export function listCommon(query) {
  return request({
    url: '/system/common/list',
    method: 'get',
    params: query
  })
}

// 查询商代参数详细
export function getCommon(commonId) {
  return request({
    url: '/system/common/' + commonId,
    method: 'get'
  })
}

// 新增商代参数
export function addCommon(data) {
  return request({
    url: '/system/common',
    method: 'post',
    data: data
  })
}

// 修改商代参数
export function updateCommon(data) {
  return request({
    url: '/system/common',
    method: 'put',
    data: data
  })
}

// 删除商代参数
export function delCommon(commonId) {
  return request({
    url: '/system/common/' + commonId,
    method: 'delete'
  })
}